package common

import (
	"sync"

	"gitee.com/Yu-eng/Myproject/my-go-blog/config"
	"gitee.com/Yu-eng/Myproject/my-go-blog/models"
)

var Template models.HtmlTemplate

func LoadTemplate() {
	//对加载模板的操作进行优化
	w := sync.WaitGroup{}
	w.Add()
	go func() {
		Template = models.InitTemplate(config.Cfg.System.CurrentDir + "/template/")
	}()
}
